package watercups.operators;
import watercups.states.WaterCupState;
import templates.Operator;

public class Fill2 implements Operator<WaterCupState>{
	
	public int getOperatorNumber(){
		return 2;
	}
	
	public WaterCupState execute(WaterCupState s){
		return new WaterCupState(s.getCapacity1(),4);
	}
	
	public boolean available (WaterCupState s){
		if(s.getCapacity2()<4)
			return true;
		else
			return false;		
	}
	
	public String toString(){
		return "Fillings 2nd cup";
	}

}
